using System.Text.Json;
using System.Text.Json.Serialization;
using Aurora.AI.MetaGLM.Models.ResponseModels.ImageGenerationModels;

namespace Aurora.AI.MetaGLM.Models.ResponseModels.VideosGenerationModels
{
    public class VideoResponseBase
    {
        public long created { get; set; }
        [JsonPropertyName("video_result")]
        public List<VideoResponseDataItem> data { get; set; }
        public Dictionary<string, string> error { get; set; }
        public string task_status { get; set; }
        public string id { get; set; }

        public string model { get; set; }
        public static VideoResponseBase FromJson(string json)
        {
            return JsonSerializer.Deserialize<VideoResponseBase>(json);
        }
    }
}